package com.itic.appbase.framework.type;

public enum InComeType {
	YH("001","友惠钱包利息"),JD("002","京东联盟返利");
	private String type;
	private String name;
	InComeType(String type,String name){
		this.type = type;
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public static InComeType getType(String type) {
		InComeType inComeType = null;
		switch (type) {
		case "001":
			inComeType = InComeType.YH;
			break;
		case "002":
			inComeType = InComeType.JD;
			break;
		default:
			break;
		}
		return inComeType;
	}
}
